package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallLogisticsDO;
import com.starlink.model.request.MallLogisticsRequest;
import com.starlink.model.vo.MallLogisticsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallLogisticsDtoMapper {

    MallLogisticsDtoMapper INSTANCE = Mappers.getMapper(MallLogisticsDtoMapper.class);

    /**
    * DO to VO
    * @param mallLogisticsDO
    * @return
    */
    MallLogisticsVO do2VO(MallLogisticsDO mallLogisticsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallLogisticsDO request2DO(MallLogisticsRequest request);
}
